<template>
  <div>
    <Index count="嘉年华">
      <template #count>
        <ul>
          <li v-for="item in preson" :key="item">{{ item }}</li>
        </ul>
      </template>
    </Index>
    <hr>
    <Index count="palygjoy">
      <template #Item>
        <ul>
          <li v-for="item in Item" :key="item">{{ item }}</li>
        </ul>
      </template>
    </Index>
    <hr>
    <Index count="圣诞狂欢">
      <template #List>
        <ul>
          <li v-for="item in List" :key="item">{{ item }}</li>
        </ul>
      </template>
    </Index>
  </div>
</template>

<script>
import Index from "./components/index.vue";
export default {
  name: "App",
  components: {
    Index,
  },
  data() {
    return {
      preson: ["A", "B", "C"],
      List:['中华','小日本','漂亮国'],
      Item:['1','2','3']
    };
  },
};
</script>

<style>
</style>